import {
    bannerlist
} from '../../../request/app'

const state = {
    list: [],
}
const mutations = {
    MUsetlist(state, payload) {
        state.list = payload
    },
}
const actions = {
    ACsetlist({
        commit
    }) {
        bannerlist()
            .then(res => {
                // console.log(res,'8888888888888888888');
                commit('MUsetlist', res.list)
            })

    },
}
const getters = {
    getlist(state) {
        return state.list
    },

}

export default {
    state,
    mutations,
    actions,
    getters,
    namespaced: true
}